package com.wlb365.financing.modules.sys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wlb365.financing.modules.sys.dto.UserRoleGroupDTO;
import com.wlb365.financing.modules.sys.entity.UserRole;
import com.wlb365.financing.modules.sys.vo.UserRoleVO;

import java.util.List;

/**
 * <p>
 * 概述：
 * </p>
 *
 * @author zwh
 * @version 1.0
 * @copyRight 北京微利宝信息技术有限公司  All right reserved.
 * @date 2020/3/21
 */
public interface IUserRoleService extends IService<UserRole> {

    Page<UserRole> listUserRolePage(UserRole userRole);

    List<UserRole> getUserRoleByRoleId(Long roleId);

    void saveOrUpdateBatchUserRole(UserRoleVO userRoleVO);

    void saveOrUpdateBatchUserRole(List<Long> roleIds, String userId);

    int countUserRoleByRoleId(Long roleId);

    UserRoleGroupDTO getUserRoleGroupDTOByUserId(String userId);

    String getRoleIdsByUserId(String userId);

    String getRoleNamesByUserId(String userId);

}
